<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>modal | anni-ui</title>
    <link rel="stylesheet" href="../vars.css">
    <link rel="stylesheet" href="../demo.css">
    <link rel="stylesheet" href="../icon/icon.css">
    <link rel="stylesheet" href="../button/button.css">
    <link rel="stylesheet" href="./modal.css">

    <style>

    </style>
</head>

<body>
    <button class="tongyong">通用</button>
    <script type="module">
        import { ready, qs, qsa, each, addEvent } from '../utils.js';
        import { modal } from './modal.js';

        ready(() => {
            const tl = modal.open({
                title: '标题',
                content: '内容',
            });
            addEvent(qs('.tongyong'), 'click', (e) => {
                tl.open();
            });
        });
    </script>
</body>

</html>